#include<stdio.h>
int main(void)
{
	int i,j;
	double s=0;
	unsigned long t;
	
	for(i=1;i<=10;i++)
	{
		t=1;
		for(j=1;j<=i;j++)
		    t=t*j;
		    
	    printf("%d!=%lu.\n",i,t);
	    s=s+(1/t);
	}
	printf("%lf.\n",s);
	return 0;
}
